import request from '@/utils/request'

export function getCustomerList(params) {
  return request({
    url: '/customer/list',
    method: 'get',
    params
  })
}

export function getCustomerAll() {
  return request({
    url: '/customer/listall',
    method: 'get',
  })
}

export function createCustomer(params) {
  return request({
    url: '/customer/insert',
    method: 'post',
    data: params
  })
}

export function updateCustomer(params) {
  return request({
    url: '/customer/update',
    method: 'post',
    data: params
  })
}

export function deleteCustomer(params) {
  return request({
    url: '/customer/delete',
    method: 'post',
    params
  })
}
